<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Life Runner: Riferimenti per il file main.cpp</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Batteri.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Life Runner
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Il Gioco della Vita</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Funzioni</a> &#124;
<a href="#var-members">Variabili</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per il file main.cpp</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="main_8cpp_source.html">Vai al codice sorgente di questo file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Funzioni</h2></td></tr>
<tr class="memitem:a0ddf1224851353fc92bfbff6f499fa97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr class="memdesc:a0ddf1224851353fc92bfbff6f499fa97"><td class="mdescLeft">&#160;</td><td class="mdescRight">main.  <a href="#a0ddf1224851353fc92bfbff6f499fa97"></a><br/></td></tr>
<tr class="separator:a0ddf1224851353fc92bfbff6f499fa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variabili</h2></td></tr>
<tr class="memitem:a76395f2680b21afc2034736269f644e8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cpp.html#a76395f2680b21afc2034736269f644e8">screenX</a></td></tr>
<tr class="memdesc:a76395f2680b21afc2034736269f644e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">distanza dei widget dal punto 0,0  <a href="#a76395f2680b21afc2034736269f644e8"></a><br/></td></tr>
<tr class="separator:a76395f2680b21afc2034736269f644e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8044665d55214c345872bf2b79d8e270"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cpp.html#a8044665d55214c345872bf2b79d8e270">screenY</a></td></tr>
<tr class="memdesc:a8044665d55214c345872bf2b79d8e270"><td class="mdescLeft">&#160;</td><td class="mdescRight">altezza dei widget dal punto 0,0  <a href="#a8044665d55214c345872bf2b79d8e270"></a><br/></td></tr>
<tr class="separator:a8044665d55214c345872bf2b79d8e270"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Documentazione delle funzioni</h2>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>main. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">argc</td><td></td></tr>
    <tr><td class="paramname">argv</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Restituisce</dt><dd>esecuzione del programma</dd></dl>
<p>Con QApplication inizializziamo le variabili d'ambiente del sistema, poi creiamo un nuovo oggetto <a class="el" href="classStarter.html" title="The Starter class.">Starter</a> (QMainWindow) e facciamo partire il main loop del programma con exec </p>

<p>Definizione alla linea <a class="el" href="main_8cpp_source.html#l00020">20</a> del file <a class="el" href="main_8cpp_source.html">main.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    QApplication a(argc, argv);</div>
<div class="line"></div>
<div class="line">    QDesktopWidget *d = <span class="keyword">new</span> QDesktopWidget();</div>
<div class="line">    <span class="comment">/**** modifica di variabili globali ****/</span></div>
<div class="line">    <a class="code" href="main_8cpp.html#a76395f2680b21afc2034736269f644e8" title="distanza dei widget dal punto 0,0">screenX</a> = d-&gt;window()-&gt;width();</div>
<div class="line">    <a class="code" href="main_8cpp.html#a8044665d55214c345872bf2b79d8e270" title="altezza dei widget dal punto 0,0">screenY</a> = d-&gt;window()-&gt;height();</div>
<div class="line">    TRACE(<span class="stringliteral">&quot;dimensioni dello schermo&quot;</span>&lt;&lt;<a class="code" href="main_8cpp.html#a76395f2680b21afc2034736269f644e8" title="distanza dei widget dal punto 0,0">screenX</a>&lt;&lt;<span class="stringliteral">&quot;*&quot;</span>&lt;&lt;<a class="code" href="main_8cpp.html#a8044665d55214c345872bf2b79d8e270" title="altezza dei widget dal punto 0,0">screenY</a>);</div>
<div class="line"></div>
<div class="line">    GD1(cout&lt;&lt;<span class="stringliteral">&quot;[main] sto per inizializzare lo starter&quot;</span>&lt;&lt;endl);</div>
<div class="line">    <a class="code" href="classStarter.html" title="The Starter class.">Starter</a> * starter = <span class="keyword">new</span> <a class="code" href="classStarter.html" title="The Starter class.">Starter</a>();</div>
<div class="line">    starter-&gt;show();</div>
<div class="line"></div>
<div class="line">    <span class="keywordflow">return</span> a.exec();</div>
<div class="line"></div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Documentazione delle variabili</h2>
<a class="anchor" id="a76395f2680b21afc2034736269f644e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int screenX</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>distanza dei widget dal punto 0,0 </p>

<p>Definizione alla linea <a class="el" href="main_8cpp_source.html#l00005">5</a> del file <a class="el" href="main_8cpp_source.html">main.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a8044665d55214c345872bf2b79d8e270"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int screenY</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>altezza dei widget dal punto 0,0 </p>

<p>Definizione alla linea <a class="el" href="main_8cpp_source.html#l00006">6</a> del file <a class="el" href="main_8cpp_source.html">main.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Ven 16 Nov 2012 15:59:35 per Life Runner da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2
</small></address>
</body>
</html>
